import service from '@/utils/request'

// @Tags UserProject
// @Summary 创建UserProject
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserProject true "创建UserProject"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userProject/createUserProject [post]
export const createUserProject = (data) => {
     return service({
         url: "/userProject/createUserProject",
         method: 'post',
         data
     })
 }


// @Tags UserProject
// @Summary 删除UserProject
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserProject true "删除UserProject"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userProject/deleteUserProject [delete]
 export const deleteUserProject = (data) => {
     return service({
         url: "/userProject/deleteUserProject",
         method: 'delete',
         data
     })
 }

// @Tags UserProject
// @Summary 删除UserProject
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserProject"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userProject/deleteUserProject [delete]
 export const deleteUserProjectByIds = (data) => {
     return service({
         url: "/userProject/deleteUserProjectByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserProject
// @Summary 更新UserProject
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserProject true "更新UserProject"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userProject/updateUserProject [put]
 export const updateUserProject = (data) => {
     return service({
         url: "/userProject/updateUserProject",
         method: 'put',
         data
     })
 }


// @Tags UserProject
// @Summary 用id查询UserProject
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserProject true "用id查询UserProject"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userProject/findUserProject [get]
 export const findUserProject = (params) => {
     return service({
         url: "/userProject/findUserProject",
         method: 'get',
         params
     })
 }


// @Tags UserProject
// @Summary 分页获取UserProject列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserProject列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userProject/getUserProjectList [get]
 export const getUserProjectList = (params) => {
     return service({
         url: "/userProject/getUserProjectList",
         method: 'get',
         params
     })
 }